package com.hn.mapper;

import com.hn.model.CnUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@Mapper
public interface CnUserMapper {

	public CnUser getCnUserById(@Param(value = "id") String id)throws Exception;

	public List<CnUser>	getCnUserListByMap(Map<String, Object> param)throws Exception;

	public Integer getCnUserCountByMap(Map<String, Object> param)throws Exception;

	public Integer insertCnUser(CnUser cnUser)throws Exception;

	public Integer updateCnUser(CnUser cnUser)throws Exception;

	public Integer deleteCnUserById(@Param(value = "id") Long id)throws Exception;

	public Integer batchDeleteCnUser(Map<String, List<String>> params);

}
